<%@ page import = "java.io.* ,java.util.*, java.sql.*, Login.* , Admin.* , Registration.*, java.util.Vector "%>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>:: Shanti Chakra Foundation ::</title>
        <link href="style.css" rel="stylesheet" type="text/css">
        <link rel="stylesheet" href="./css/yellow.css" />
        <link rel="stylesheet" href="./css/small.css" />
        <!-- Loading Calendar JavaScript files -->
        <script type="text/javascript" src="./js/zapatec.js"></script>
        <script type="text/javascript" src="./js/calendar.js"></script>
        <!-- Loading language definition file -->
        <script type="text/javascript" src="./js/calendar-en.js"></script>
        <meta http-equiv="content-type" content="text/xml; charset=utf-8" />
        <style type="text/css">
            <!--
            .style70 {
                font-size: 24px;
                font-weight: bold;
            }
            -->
            0    </style>
    </head>
    <body bgcolor="#0D62A2">
        <a href="AllMembers.jsp">BACK</a>
        <%
            HttpSession hs = request.getSession(true);
            String id = (String) hs.getAttribute("memid");
        %>
        <span class="boldtext">Welcome : <%=id%>
            <%
            RegistrationBean rbean = (RegistrationBean) request.getAttribute("rbeanview");
            String rcheck = (String) session.getAttribute("view_rcheck");
            System.out.println("Session is :" + rcheck);
            String ename = rbean.getName();
            System.out.println("rbean get name value ---------- > " + ename);
            %>
        </span>
        <table width="784" border="0" align="center" bordercolor="#FFFFFF" class="greenlink_no_left_padding"  style="border-right: #F8C9CA 1px solid; border-top: #F8C9CA 1px solid; border-left: #F8C9CA 1px solid;  border-bottom: #F8C9CA 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
            <tr>
                <td height="20" colspan="6" bgcolor="#D8F2C9" class="style44"><a href="AllMembers.jsp">Back</a></td>
            </tr>
            <tr>
                <td height="20" colspan="6" bgcolor="#D8F2C9" class="style44"><p align="left" class="style52"><span class="style55">Member "</span><%=rcheck%><span class="style55">" Details :</span></p>
                    <p align="center" class="banner320 style70">View Member Details </p></td>
            </tr>
            <tr>
                <td colspan="4" class="style38">
                    <table width="101%" height="335" border="0" cellpadding="0" cellspacing="0" style="border-right: #F8C9CA 1px solid; border-top: #F8C9CA 1px solid; border-left: #F8C9CA 1px solid;  border-bottom: #F8C9CA 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                        <tr>
                            <td width="45%"><table width="100%" height="224" border="0" cellpadding="5" cellspacing="0"  style="border-right: #F8C9CA 1px solid; border-top: #F8C9CA 1px solid; border-left: #F8C9CA 1px solid;  border-bottom: #F8C9CA 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                                    <tr>
                                        <td height="24" colspan="3" align="center" bgcolor="#FFFF99" class="bluetext">Personal Details</td>
                                    </tr>
                                    <tr>
                                        <td width="40%" class="greentext">NAME* :</td>
                                        <td colspan="2" class="style44 style48"> <%=ename%></td>
                                    </tr>
                                    <tr>
                                        <td class="greentext">SURNAME*:</td>
                                        <td colspan="2" class="style44 style48"> <%=rbean.getSurname()%> </td>
                                    </tr>
                                    <tr>
                                        <td class="greentext">SEX*:</td>
                                        <td colspan="2" class="style44 style48"> <%=rbean.getSex()%> </td>
                                    </tr>
                                    <tr>
                                        <td class="greentext">DATE OF BIRTH*:</td>
                                        <td width="31%" class="style44 style48"><%=rbean.getDob()%></td>
                                        <td width="29%" class="style44 style48"> AGE :<%=rbean.getAge()%> </td>
                                    </tr>
                                    <tr>
                                        <td class="greentext">CASTE : </td>
                                        <td colspan="2" class="boldtext"><%=rbean.getCaste()%></td>
                                    </tr>
                                    <tr>
                                        <td class="greentext">QUALIFICATION :</td>
                                        <td colspan="2" class="boldtext"><%=rbean.getQualification()%></td>
                                    </tr>
                                    <tr>
                                        <td class="greentext">RESIDENCE ADDRESS*:</td>
                                        <td colspan="2" class="boldtext"><%=rbean.getRes_add()%></td>
                                    </tr>
                                    <tr>
                                        <td class="greentext">STATE:</td>
                                        <td colspan="2" class="boldtext"><%=rbean.getState()%></td>
                                    </tr>
                                    <tr>
                                        <td height="18" class="greentext">DISTRICT:</td>
                                        <td colspan="2" class="boldtext"><%=rbean.getDist()%></td>
                                    </tr>
                                    <tr>
                                        <td height="18" class="greentext">MANDAL:</td>
                                        <td colspan="2" class="boldtext"><%=rbean.getMandal()%></td>
                                    </tr>
                                    <tr>
                                        <td height="18" class="greentext">Reffered By (member ID) </td>
                                        <td colspan="2" class="boldtext"><span class="style45"> </span> <span class="style45"><%=rbean.getReffmemberid()%></span> <span class="style45"></span></td>
                                    </tr>
                                    <tr>
                                        <td height="18" class="style40">&nbsp;</td>
                                        <td colspan="2" class="boldtext">&nbsp;</td>
                                    </tr>
                                </table></td>
                            <td width="45%"><table width="100%" height="118" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td height="112" valign="middle"><div align="center" class="style45">IMAGE </div>
       <%
        InputStream sImage = rbean.getFile();
        System.out.println("sImage==@@" + sImage.available());
        File f = new File(request.getRealPath("/")+"image" + rbean.getSno() + ".jpg");
        System.out.println("-----"+request.getRealPath("/")+"image" + rbean.getSno() + ".jpg");
        OutputStream out1 = new FileOutputStream(f);
        byte buf[] = new byte[1024];
        int len;
        while ((len = sImage.read(buf)) > 0) {
            out1.write(buf, 0, len);
        }
        out1.close();
        sImage.close();
        System.out.println("\nFile is created.................");
   

                                            %>
                                            <img width="200" height="100" src="<%=request.getContextPath()+"/image" + rbean.getSno() + ".jpg"%>">


                                        </td>
                                    </tr>

                                </table>
                                <table width="103%" height="79" border="0" cellpadding="5" cellspacing="0" style="border-right: #F8C9CA 1px solid; border-top: #F8C9CA 1px solid; border-left: #F8C9CA 1px solid;  border-bottom: #F8C9CA 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                                    <tr>
                                        <th height="25" colspan="2" align="center" bgcolor="#FFFF99" class="bluetext"><pre>Office Details </pre></th>
                                    </tr>
                                    <tr>
                                        <td width="52%" height="17" align="left" bgcolor="#D8F2C9" class="greentext">PROFESSION/DESIGNATION*</td>
                                        <td width="48%" align="left" bgcolor="#D8F2C9" class="boldtext"><%=rbean.getProf()%></td>
                                    </tr>
                                    <tr>
                                        <td height="17" align="left" bgcolor="#D8F2C9" class="greentext">ORGANISATION NAME: </td>
                                        <td align="left" bgcolor="#D8F2C9" class="boldtext"><%= rbean.getOrg()%></td>
                                    </tr>
                                    <tr>
                                        <td height="18" align="left" bgcolor="#D8F2C9" class="greentext">OFFICE ADDRESS: </td>
                                        <td align="left" bgcolor="#D8F2C9" class="boldtext"><%=rbean.getOff_add()%></td>
                                    </tr>
                                </table>
                                <table width="100%" height="108" border="0" cellpadding="5" cellspacing="0" style="border-right: #F8C9CA 1px solid; border-top: #F8C9CA 1px solid; border-left: #F8C9CA 1px solid;  border-bottom: #F8C9CA 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                                    <tr>
                                        <th height="21" colspan="2" align="center" bgcolor="#FFFF99" class="bluetext"><pre>Contact Details </pre></th>
                                    </tr>
                                    <tr>
                                        <td width="52%" height="17" align="left" bgcolor="#D8F2C9" class="greentext">RESIDENCE </td>
                                        <td width="48%" align="left" bgcolor="#D8F2C9" class="boldtext"><%=rbean.getRes_phone()%></td>
                                    </tr>
                                    <tr>
                                        <td height="17" align="left" bgcolor="#D8F2C9" class="greentext">OFFICE</td>
                                        <td align="left" bgcolor="#D8F2C9" class="boldtext"><%=rbean.getRes_phone()%></td>
                                    </tr>
                                    <tr>
                                        <td height="17" align="left" bgcolor="#D8F2C9" class="greentext">MOBILE*:</td>
                                        <td align="left" bgcolor="#D8F2C9" class="boldtext"><%=rbean.getMobile()%></td>
                                    </tr>
                                    <tr>
                                        <td align="left" bgcolor="#D8F2C9" class="greentext">EMAIL :</td>
                                        <td align="left" bgcolor="#D8F2C9" class="boldtext"><%=rbean.getEmail()%></td>
                                    </tr>
                                    <tr>
                                        <td align="left" bgcolor="#D8F2C9" class="greentext">WEB ADDRESS:</td>
                                        <td align="left" bgcolor="#D8F2C9" class="boldtext"><%=rbean.getWebadd()%></td>
                                    </tr>
                                    <tr>
                                        <td height="2" align="left" bgcolor="#0D62A2" class="style44"></td>
                                        <td align="left" bgcolor="#0D62A2" class="style49"></td>
                                    </tr>
                                </table></td>
                        </tr>
                    </table></td>
            </tr>
            <tr>
                <th colspan="6" bgcolor="#FFFF99" class="style38"><div align="left" class="bluetext">
                        <pre>SPOUSE  DETAILS: </pre>
                    </div></th>
            </tr>
            <tr>
                <td ><table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-right: #F8C9CA 1px solid; border-top: #F8C9CA 1px solid; border-left: #F8C9CA 1px solid;  border-bottom: #F8C9CA 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                        <tr>
                            <td width="20%" bgcolor="#D8F2C9" class="greentext">NAME OF THE SPOUSE:</td>
                            <td width="30%" bgcolor="#D8F2C9" class="boldtext"><%=rbean.getSpouse_name()%></td>
                            <td width="29%" bgcolor="#D8F2C9" class="greentext">SEX:</td>
                            <td width="21%" bgcolor="#D8F2C9" class="boldtext"><%=rbean.getSsex()%></td>
                        </tr>
                        <tr>
                            <td bgcolor="#D8F2C9" class="greentext">DATE OF BIRTH:</td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getSdob()%> </td>
                            <td bgcolor="#D8F2C9" class="greentext"><p class="style68">MARRIAGE ANNIVERSARY:</p></td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getMar_aniv()%> </td>
                        </tr>
                        <tr>
                            <td bgcolor="#D8F2C9" class="greentext">QUALIFICATION :</td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getSqual()%></td>
                            <td bgcolor="#D8F2C9" class="greentext">PROFESSION :</td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getSprof()%></td>
                        </tr>
                        <tr>
                            <td height="25" bgcolor="#D8F2C9" class="greentext">ORG/ COMPANY:</td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getSorg()%></td>
                            <td bgcolor="#D8F2C9" class="greentext">&nbsp;</td>
                            <td bgcolor="#D8F2C9" class="greentext">&nbsp;</td>
                        </tr>
                    </table>			</td>
            </tr>
            <tr>
                <th colspan="6" bgcolor="#FFFF99" class="style38"><div align="left" class="bluetext">
                        <pre>CHILDREN  DETAILS: </pre>
                    </div></th>
            </tr>
            <tr>
                <td height="92" colspan="5" bgcolor="#0D62A2" class="style44"><table width="100%" height="106" border="0" cellpadding="0" cellspacing="0" style="border-right: #F8C9CA 1px solid; border-top: #F8C9CA 1px solid; border-left: #F8C9CA 1px solid;  border-bottom: #F8C9CA 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                        <tr>
                            <td bgcolor="#D8F2C9" class="greentext">NAME OF THE CHILD </td>
                            <td bgcolor="#D8F2C9" class="greentext">DATE OF BIRTH : </td>
                            <td bgcolor="#D8F2C9" class="greentext">SEX :</td>
                            <td bgcolor="#D8F2C9" class="greentext">QUALIFICATION :</td>
                        </tr>
                        <tr>
                            <td bgcolor="#D8F2C9" class="boldtext">1) <%=rbean.getC1name()%> </td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getC1dob()%> </td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getC1sex()%></td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getC1qual()%></td>
                        </tr>
                        <tr>
                            <td bgcolor="#D8F2C9" class="boldtext">2) <%=rbean.getC2name()%> </td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getC2dob()%> </td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getC2sex()%></td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getC2qual()%></td>
                        </tr>
                        <tr>
                            <td bgcolor="#D8F2C9" class="boldtext">3) <%=rbean.getC3name()%></td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getC3dob()%> </td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getC3sex()%></td>
                            <td bgcolor="#D8F2C9" class="boldtext"><%=rbean.getC3qual()%></td>
                        </tr>
                    </table></td>
            </tr>
            <tr bgcolor="#0D62A2">
                <td height="21" colspan="5" bgcolor="#D8F2C9" class="style44"><div align="center" id="sbutton">
                        <input name="Print" type="submit" class="style46" id="Print" onClick="window.print()" value="Print" />
                    </div></td>
            </tr>
        </table>
    </body>
</html>